package com.xiaofeng.pochi.mapper;

import com.xiaofeng.pochi.pojo.ShopOrderItem;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/09/17/23:44
 * @Description:
 */
@Component
public interface ShopOrderItemMapper {

    /**
     * 批量保存
     * @param shopOrderItemList
     */
    void saveBatch(List<ShopOrderItem> shopOrderItemList);
    /**
     * 根据订单ID集合查询
     * @param orderIds
     * @return
     */

    List<ShopOrderItem> getByOrderIds(List<Long> orderIds);

    /**
     * 根据订单ID查询
     * @param id
     * @return
     */
    List<ShopOrderItem> getByOrderId(Long id);

    /**
     * 根据id集合查询
     * @param orderItemIds
     * @return
     */
    List<ShopOrderItem> getByIds(List<Long> orderItemIds);
}
